package com.vnp.cooking.UIcontrols;

import android.content.Context;
import android.util.AttributeSet;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.widget.EditText;

public class ActionEdittext extends EditText{

    public ActionEdittext(Context context) {
		super(context);
	}
    public ActionEdittext(Context context, AttributeSet attrs)
    {
        super(context, attrs);
    }

    public ActionEdittext(Context context, AttributeSet attrs, int defStyle)
    {
        super(context, attrs, defStyle);
    }
	@Override
    public InputConnection onCreateInputConnection(EditorInfo outAttrs)
    {
        InputConnection conn = super.onCreateInputConnection(outAttrs);
        outAttrs.imeOptions &= ~EditorInfo.IME_FLAG_NO_ENTER_ACTION;
        return conn;
    }
}
